//
//  UIView+ZYBCustomToast.h
//  homework
//
//  Created by AW Technician on 16/1/6.
//  Copyright © 2016年 zyb. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^ShowComplete)(void);

@interface UIView (ZYBCustomToast)

@property (nonatomic ,assign)CGPoint toastCenterPoint;
@property (nonatomic ,copy)ShowComplete showComplete;

- (void)showErrorMessage:(NSString *)aMessage;
- (void)showSucceedMessage:(NSString *)aMessage;
- (void)showNetErrorWithMessage:(NSString *)aMessage;
- (void)showNetErrorWithMessage:(NSString *)aMessage time:(CGFloat)time;
- (void)showLoadingMessage:(NSString *)aMessage;
- (void)showLoadingMessage:(NSString *)aMessage isHorizontalScreen:(BOOL)isHorizontalScreen;
- (void)showLoadingBrandLogoAnimation;  // 小熊猫品牌loading动画
- (void)showLoadingMessageWithCurrentLoadingToast:(NSString *)aMessage;
- (void)removeLoadingTost;
- (void)showSucceedMessage:(NSString *)aMessage complete:(ShowComplete)complete;
- (void)showErrorMessage:(NSString *)aMessage complete:(ShowComplete)complete;
- (void)showErrorMessage:(NSString *)aMessage time:(CGFloat)time;
- (void)showToastLongTimeWithImageName:(NSString *)imageName message:(NSString *)message time:(CGFloat)time;
@end
